Update

Update the Heterogeneous Folder referenced by the supplied HeterogeneousFolderHandle based on attribute values supplied through the HeterogeneousFolderUpdater. The OPTIMISTIC_LOCKING mode is supplied, and Heterogeneous Folder state is not the latest one, the OutdatedStateException will be thrown. If successful, it returns a new HeterogeneousFolder snapshot based on the supplied Projection.

Example:

 HeterogeneousFolderFactory hfFactory = HeterogeneousFolderFactory.getInstance();   
 HeterogeneousFolderControl hfControl = ControlLocator.getInstance().getHeterogeneousFolderControl();  
 
 HeterogeneousFolderCreator updater = hfFactory.createHeterogeneousFolderUpdater();
 updater.setName("name");

 HeterogeneousFolderProjection proj = hfFactory.createHeterogeneousFolderProjection();
 proj.autoSelectAll();
 HeterogeneousFolder updatedFolder = hfControl.updateHeterogeneousFolder(hf.getHandle(), 
                                                   updater,
                                                   UpdateMode.OPTIMISTIC_LOCKING);
 

heterogeneousFolder updateHeterogeneousFolder( beeId handle , heterogeneousFolderUpdater updater , updateMode snapshotid , Projection projection )

Parameters

handle
Type: beeId handle to the HeterogeneousFolder to be updated
updater
Type: heterogeneousFolderUpdater HeterogeneousFolderUpdater
snapshotid
Type: updateMode determine if the entity should always be updated or if optimistic locking should be used.
projection
ProjectionWrapper